Skip to content

feat(nextjs): Automatically skip middleware requests for tunnel route #16812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 7, 2025

Conversation

chargome
Copy link
Member

@chargome chargome commented Jul 4, 2025

#16626 added the option to generate a randomly generated tunnel route per build. This PR adds functionality for automatically skipping tunnel route requests in the nextjs middleware, as this had to be set up manually by the user until now.

@chargome chargome self-assigned this Jul 4, 2025
@chargome chargome marked this pull request as ready for review July 4, 2025 13:24
Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! This works in turbopack too?

Co-authored-by: Francesco Gringl-Novy <francesco.novy@sentry.io>
@chargome
Copy link
Member Author

chargome commented Jul 7, 2025

This will currently not work in turbopack

@chargome chargome merged commit 2911b4a into develop Jul 7, 2025
166 checks passed
@chargome chargome deleted the cg-next-inject-tunnel-matcher branch July 7, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants